<template>
    <div>
        <lunbo />
        <div class="ho banxin">
            <Title />
            <lists :AllInfo="geInfo" />
            <Title />
            <Newde :deInfo="newde" />
            <Title />
        </div>

    </div>
</template>

<script>
import { Tuijiange, Tuijiandt, Newdetuijian } from "../request/api";
import lunbo from "@/components/home/lunbo.vue";
import Title from "@/components/home/Title.vue"
import lists from "@/components/home/Lists.vue";
import Newde from "@/components/home/Newde.vue";
export default {
    data() {
        return {
            geInfo: [],
            newde: []
        }
    },
    components: {
        Title,
        lists,
        Newde,
        lunbo
    },
    created() {
        Tuijiange({
            limit: '5'
        }).then(res => {
            if (res.data.code === 200) {
                // console.log(res);
                this.geInfo = res.data.result
            }
            // console.log(this.geInfo);
        })
        // Tuijiandt().then(res =>{
        //     console.log(res);
        // })
        Newdetuijian().then(res => {
            // console.log(res);
            this.newde = res.data.albums
        })
    }
}
</script>
 
<style lang = "less" scoped>
@import "../assets/base.less";

.ho {
    border-left: 1px solid #666;
    border-right: 1px solid #666;
    border-bottom: 1px solid #666;
    padding: 20px;
    background-color: #fff;
}
</style>